<%@page import="com.lynn.salary.entity.User_"%>
<%@page import="com.opensymphony.xwork2.util.ValueStack"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.lynn.salary.util.ToolMethod"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<style>
	.leftCss56345{
	width: 140px;
}

.rightCss454545 {
	width: 140px;
}
</style>
<br/>
当前用户:<s:property value="empName"/>
<br/>
<br/>
<br/>
<form action="<%=basePath %>employee!empRoleAssign.do" method="post" class="pageForm required-validate" onsubmit="return validateCallback(this);">

	<input type="hidden" value="<s:property value="empId"/>" name="empId">
	<s:optiontransferselect label="角色分配" labelposition="top" 
							list="myRoles" name="newRoles"
							listKey="id"
							listValue="name"
							doubleList="allRoles"
							doubleName="notHave"
							allowSelectAll="true"
							doubleListKey="id"
							doubleListValue="name"
							leftTitle="已拥有" 
							rightTitle="未分配"
							cssClass="leftCss56345"
							doubleCssClass="rightCss454545"
							addToLeftLabel="向左" addToRightLabel="向右"
							selectAllLabel="所有"
							addAllToLeftLabel="全部向左" addAllToRightLabel="全部向右"
							/>
						
	<input type="submit" value="保存" onclick="selectAllOptions(document.getElementById('newRoles'));selectAllOptions(document.getElementById('notHave'));return true;"/>
</form>						